// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import App from './App'
// 全局样式
import 'common/stylus/index.styl'
import 'common/fonts/iconfont.css'
import 'common/fonts/weui.css'
import 'common/css/index.css'

import Vue from 'vue'

import router from './router'
import store from './store'

// import fastclick from 'fastclick'
// babel-polyfill
import 'babel-polyfill'
// lazyload
import 'base/lazyload'
// // VConsole
// var VConsole = require('vconsole')
// /* eslint-disable no-unused-vars */
// var vConsole = new VConsole()

Vue.config.productionTip = false

// Vue.directive('imginsert', {
//   // 当被绑定的元素插入到 DOM 中时……
//   inserted: function (el) {
//     // 聚焦元素
//     el.onload = function () {
//       console.log('img success load')
//     }
//   }
// })

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
